﻿using System.Collections.Generic;

namespace Xms.Abp.Data;

public abstract class CodeTreeBase<TTree, TKey> : ICodeTree<TTree, TKey>
    where TTree : class, ITree<TTree>, ICodeTree<TTree, TKey>
    where TKey : class
{
    public TKey Code { get; set; }
    public TKey ParentCode { get; set; }
    public List<TTree> Children { get; set; } = new List<TTree>();

    public abstract TTree Clone();
}
